package com.baseweb.webadmin.core.constants;

import java.util.ArrayList;
import java.util.List;

public enum BaseState {
    NORMAL(1,"正常"), DELETE(-1,"删除");

    private int code;
    private String name;
    BaseState(int code, String name){
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static List<BaseState> getAllEnum(){
        List<BaseState> result = new ArrayList<BaseState>();
        for (BaseState current : BaseState.values())
        {
            result.add(current);
        }
        return result;
    }


}
